<?php
/**
 * 字典表
 * @author YKQ
 *
 */
class DictionaryHelper
{
    /**
     * 对应的账号有对应 appid，appsecret,秘钥
     * 
     * @param $gh 微信号
     * @return array 微信号的信息，包括加解密秘钥
     */
    public static function getWeixin($gh){
        $weixinArray = array(
            "gh_9502a381a980" => array("wx85c670986f3f1ac4","e55132d3057ce8e619e6e4ecb8b6f325",
            	"9pL0zuyd5DCi7y230oDMTkkm5JZe1tMH16dGGD4ZSKe"),
            "gh_31a09f53cf57" => array("wx837a1d76337e4eb5","37654da2d384ae8c2865e2722be0f9c8",
            	"m0b5VPVh5N2K6i6JwCqRjC7OIOdtDDXPG8PuNSry7q6"),
            "gh_4700ac7511fa" => array("wx3fe67c0e602a7a6b","8535b580ef2eb450c40e8bf6564fc8e1",
            	"vjEMEI02dVAQ77bFBj1MBM5ubKXdeGE59v24wse0kwj"),
            "gh_cacd919e5b5c" => array("wx21a1e5ebdf092c50","653efc869f436db4337a0ef7bfb1c539",
            	"vjEMEI02dVAQ77bFBj1MBM5ubKXdeGE59v24wse0kwj"),
        );
        return $weixinArray[$gh];
    }
    
	/**
     * 分众一类页面的配置
     * 
     * @return array 邮件配置信息
     */
    public static function getEmailAccount(){
        return array(
            "send" => array("noreply@yikuaiqu.com","yikuaiqu123a"),
            "to" => array("yeyq.yfr@yikuaiqu.com"),
            "smtp" => "smtp.exmail.qq.com",
            "subject" => "H5错误邮件通知",
            "name" => "错误邮件",
        );
    }

    /**
     * 游戏ID
     */
    public static function getGameID($key){
        $allGame = array(
            'firefly' => 1, //萤火虫
            'qixi'    => 2, //七夕
        );
        return $allGame[$key];
    }
}
